// import './assets/main.css'

import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import reqGlobal from "@/api/reqGlobal";
import Region from 'v-region';

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import echarts from 'echarts'

const app = createApp(App)

app.config.globalProperties.$http=reqGlobal
app.config.globalProperties.$echarts=echarts

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

app.use(Region)
app.use(router)
app.use(ElementPlus)
app.mount('#app')
